span.inputnumrole {
    color: #303F9F
}

span.outputnumrole {
    color: #D84315
}

body{
  padding : 0px;
  background-color: #fafafa;
}

h1{
  font-size: 1.8rem;
  padding-bottom: 0.8rem;
  font-weight: 500;
}

h2{
  font-size: 1.6rem;
}

h3{
  font-size: 1.5rem;
}

a{
  text-decoration: none !important;
  font-weight: bold;
  color: black !important;
}

a:hover{
  text-decoration: underline !important;
  color: gray !important;
}

.card{
  border-radius: 10px;
  border: none;
  box-shadow: 4px 4px 10px 1px rgba(0, 0, 0, .4);
}

.card-body h2 {
  color: #ffffff !important;
  font-weight: 600;
}

.definition-cards a:hover {
  text-decoration: none !important;
  color: black !important; 
}

/* To enable guides after they are incorporated into Learn Astropy: 1. Comment the display property below. 2. Remove "ml-auto" from tutorial placard's class in navbar.html */
.enable-guides {
  display: none;
}

.bg-guide {
  background-color: #f44440;    
}

.bg-tutorial {
  background-color: #fa743b;
}

.bg-documentation {
  background-color: #ffb751;
}

.bg-example {
  background-color: #ffc67b;
}

.bg-navbar {
  background-color: #212121;
  margin-bottom: 30px;
}

.bg-navbar a {
  color: #ffffff !important;
}

#astropy-logo {
  width: 35vw;
  padding-top: 100px;
}

.landing {
  background: url(starry_background.png) no-repeat center center;
  background-size: cover;
  height: 400px;
  border-radius: 0px;
}

.definition-cards {
  margin-top: -70px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 60px;
}

#search-bar {
  padding: 30px;
  margin: auto;
}

#learn-astropy a{
  color: #fa743b !important;
}

.sidenav {
  padding: 20px;  
  padding-left: 40px;
  margin-left: 6vw;
  position: absolute;
}

.result {
  margin-left: 33vw;
  margin-bottom: 25px;
}

.guide {
  border: none;
  border-left: 10px solid #f44336 !important;
}

.tutorial {
  border: none;
  border-left: 10px solid #fa743b !important;
}

.doc {
  border: none;
  border-left: 10px solid #ffb751 !important;
}

.content-padding {
  padding: 25px;
}

.footer{
  border: none;
  margin-top: 30px;
}

#search-results ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.tut-results {
  padding-top: 25px;
}

.tut-results h2, .tut-results p {
  display: none !important;
}

.result-card {
  border-radius: 10px;
  box-shadow: 3px 2px 8px 2px rgba(0, 0, 0, .3);
  margin-bottom: 20px;
  padding: 10px !important;
  background-image: none !important;
  background-color: #ffffff;
}

.result-card:hover {
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .2);
}

.result-card a{
  font-size: 1rem;
  font-weight: 500;
}

.result-card .context{
  padding-left: 15px;
  color: #333;
}

.result-card .context em{
  background-color: #fbe54e85;
}

/* CSS of the built rst files */
.toc-card {
  margin-bottom: 25px;
}

.toc-card a {
  font-weight: normal;
}

.card #download, .card #binder {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  color: #ffffff;
  background-color: #d9534f;
  border-color: #d9534f;
  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.card #download:hover, .card #download:focus, .card #binder:hover, .card #binder:focus {
  text-decoration: none;
  color: #ffffff;
  background-color: #d23430;
  border-color: #c9302c;
}

#spacer {
  margin-top: 24px;
}

code {
  color: #f44445;
}

pre {
  display: block;
  font-size: 87.5%;
  color: #212529;
  background-color: #f1f2f1;
  padding: 16px;
  border-radius: 8px;
}

span.highlighted {
  background-color: #fbe54e85;
}


/* Sidebar */
#sidebar {
  padding-top: 24px;
  padding-bottom: 24px;
  box-shadow: 3px 3px 8px 1px rgba(0, 0, 0, .4);
}

#sidebar h3 {
  padding-left: 16px;
}

ul.nav.nav-list a {
  font-weight: normal;
}

a.reference.internal.nav-header {
  font-weight: bold;
}

.bs-sidenav.affix {
  top: 10px;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #fa743b;
}

.collapse.in{
  display: block !important;
  visibility: visible;
  }
  
  [aria-expanded="false"] > #viewless,
  [aria-expanded="true"] > #viewmore {
  display: none;
  }  

/* Responsivness */
@media only screen and (max-width: 1150px) and (min-width: 992px) {
  .definition-cards a {
    font-size: 21px !important;
  }
}

@media only screen and (max-width: 768px) {
  #astropy-logo {
    width: 50vw;
  }

  .bg-documentation, .bg-example, .bg-guide, .bg-tutorial {
    margin: 8px !important;
    margin-left: 3rem !important;
    margin-right: 3rem !important;
  }

}

@media only screen and (max-width: 575px) {
  #astropy-logo {
    width: 70vw;
  }

  .card {
    margin: 7px auto !important;
  }

  body {
    background-color: #fafafa;
  }

  .bg-documentation, .bg-example, .bg-guide, .bg-tutorial {
    margin: 8px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}